<%@ page contentType="text/html;charset=gb2312"%> 
<%@ page import="java.io.*, git.bankview.sl.servlet.*" %>
<jsp:useBean id="oLogon" class="git.bankview.wl.bean.LogonBean" scope="session" />
<%
	git.bankview.wl.auth.UserAuth.validate(oLogon, "90010", git.bankview.sl.report.ReportCommon.METHOD_MODIFY);
	
	MultipartPostRequestAdapter mpRequest = new MultipartPostRequestAdapter(request);
	File oUploadFile = mpRequest.getUploadFile("jasperFile");
	String oUploadFileName = new File(mpRequest.getParameter("jasperFile")).getName();
	long nFileLen = oUploadFile.length();
	
	session.setAttribute("jasperFile", oUploadFile);
	session.setAttribute("jasperUploadFileName", oUploadFileName);
	
	File[] vAccessories = mpRequest.getUploadFiles("accessories");
	if (null != vAccessories)
	{
		String[] vAccessoryFileName = mpRequest.getParameterValues("accessories");
		for (int i = 0; i < vAccessoryFileName.length; ++i)
		{
			vAccessoryFileName[i] = new File(vAccessoryFileName[i]).getName();
		}
		
		session.setAttribute("accessories", vAccessories);
		session.setAttribute("accessoryFileNames", vAccessoryFileName);
	}
%>
<jsp:forward page="/report/NewReportTransStart.do" />
